package com.wechat.controller;

import com.alibaba.fastjson.JSONObject;
import com.fhMall.request.QueryProductListRequest;
import com.wechat.feign.FhEmalShopApi;
import com.wechat.feign.FhEmallProductApi;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 程序名：.java<br>
 * 程序功能 <br>
 * 作成者：xianlin <br>
 * 日期：2019-09-19 20:46<br>
 * 修改履历 <br>
 * 项目名    状态      作成者      日期   <br>
 * --------------------------------------- <br>
 * 新规      xianlin   2019-09-19 20:46 <br>
 * ----------------------------- <br>
 */
@RestController
@RequestMapping("wechat/shop")
@Api(tags = "微商城商户")
public class WechatShopController extends BaseController {

    @Autowired
    private FhEmalShopApi fhEmalShopApi;

    /**
     * 微商城商户详情
     * @param id 商户ID <br>
     * @return 微商城商户详情 <br>
     */
    @ApiOperation(value = "微商城商户详情")
    @GetMapping(value = "/detail")
    public JSONObject queryShopInfo(@RequestParam(value = "id") String id) {
        String result = fhEmalShopApi.queryShopInfo(id);
        return JSONObject.parseObject(result);
    }

}
